﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Collector.Device
{
    public interface IDeviceCommunication
    {
        bool SendCommandToDevice(in string cmdName);

        bool SendCommandToDevice(in string cmdKey, byte expectedCode, out byte[] payload, int tryCount = 3);

        bool SendCommandToDevice(in byte[] command, in string cmdName, byte expectedCode, out byte[] payload);

        bool GivebackCompleted(DeviceEvent evt);

        bool ResetDevice();
    }
}
